package com.ruoyi.rulengine.service.impl;

import com.ruoyi.rulengine.domain.RuleLog;
import com.ruoyi.rulengine.service.IRuleLogService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class RuleLogServiceImpl implements IRuleLogService {

    @Override
    @Async("taskExecutor")
    public void saveRuleLog(RuleLog ruleLog) {
        log.info("保存规则执行日志：{}", ruleLog);
        //TODO 插入数据库
    }
}
